package cn.bonoon.kernel.expression.results;

import cn.bonoon.kernel.events.ReadEvent;
import cn.bonoon.kernel.expression.ExpressionValue;
import cn.bonoon.kernel.expression.StandardExpressionParser;

public class SesssionExpressionValue implements ExpressionValue{
	private final String name;
	
	public SesssionExpressionValue(StandardExpressionParser seParser, String name){
		this.name = name;
	}

	@Override
	public Object value(ReadEvent event, Object defaultValue) {
		return event.getAttribute(name);
	}

}
